package com.vayne.thread;

import java.util.concurrent.atomic.AtomicIntegerArray;

/**
 * @author xuerui.zhang
 * @since 2020/4/26 下午2:08
 */
public class AtomicIntegerArrayDemo {

    public static void main(String[] args) {
        AtomicIntegerArray arr = new AtomicIntegerArray(10);
        for (int i = 0; i < arr.length(); i++) {
            System.out.println(arr.incrementAndGet(i));
        }
    }
}
